<?php
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::group('admin',function (){
    // 登录
    Route::get('login', 'admin/login/index');
    // 验证登录数据
    Route::post('checkLogin', 'admin/login/checkLogin');
    // 显示聊天页面
    Route::get('chat','admin/chat/chatIndex');
});